package cn.torna.web.controller.doc.vo;

import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * @Author zhangqian
 * @Description TODO
 * @Date 2025/1/3 15:41
 */
@Data
public class UserProjectTreeVO extends TreeVO {

    private String roleCode;
    private Byte isProject;
    private boolean roleDisabled;
    public UserProjectTreeVO(String id, String label, String parentId,String roleCode, Byte isProject) {
        super(id, label, parentId);
        this.roleCode = roleCode;
        this.isProject = isProject;
        if(StringUtils.hasText(roleCode)){
            this.roleDisabled = false;
        }
        else {
            this.roleDisabled = true;
        }
    }
}
